<script>
$('#save-quality').click(function(){
    $.post('{{ urlfor "GspController.QualityUpdate" }}/{{.m.Id}}', $('#saveform').serialize(), function (res) {
        if(res.code == 1) {
            layer.alert(res.msg);return false;
        }
        parent.dialogCallBack();
    }, 'json');
    return false;
});

</script>